<!DOCTYPE html>

<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8" />
    <title>xx后台系统----登陆页面</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <link href="__ADMIN__/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="__ADMIN__/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link href="__ADMIN__/css/style.css" rel="stylesheet" />
    <link href="__ADMIN__/css/style_responsive.css" rel="stylesheet" />
    <link href="__ADMIN__/css/style_default.css" rel="stylesheet" id="style_color" />
    <link href="__ADMIN__/css/admin.css" rel="stylesheet" id="style_color" />
    <!-- BEGIN JAVASCRIPTS -->
    <script src="__ADMIN__/js/jquery-1.8.3.min.js"></script>


    <!-- END JAVASCRIPTS -->
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body id="login-body">
<div class="login-header">
    <!-- BEGIN LOGO -->
    <div id="logo" class="center">
        <img src="__ADMIN__/img/logo.png" alt="logo" class="center" />
    </div>
    <!-- END LOGO -->
</div>

<!-- BEGIN LOGIN -->
<div id="login">
    <!-- BEGIN LOGIN FORM -->
    <form id="loginform" class="form-vertical no-padding no-margin" action="">
        <div class="lock">
            <i class="icon-lock"></i>
        </div>
        <div class="control-wrap">
            <h4>User Login</h4>
            <div class="control-group">
                <div class="controls">
                    <div class="input-prepend">
                        <span class="add-on"><i class="icon-user"></i></span><input id="input-username" type="text" name="adminuser" placeholder="登陆账户" />
                    </div>
                </div>
            </div>
            <div class="control-group">
                <div class="controls">
                    <div class="input-prepend">
                        <span class="add-on"><i class="icon-key"></i></span><input id="input-password" type="password" name="adminpassword" placeholder="登录密码" />
                    </div>
                    <div class="clearfix space5"></div>
                    <div class="showhide"></div>
                </div>

            </div>
        </div>
        <div id="login-btn" class="btn btn-block login-btn">登陆 </div>

    </form>

</div>
<!-- END LOGIN -->
<script>
    $(function () {
        $('#login-btn').on('click', function () {
            var serializeUrl = $("#loginform").serialize();
            $.post("{:url('Login/index')}", serializeUrl, function (data) {
                if (data.status == 2) {
//                    alert(data.msg);
                    window.location.href = data.url;
                } else {
                    $('.showhide').show(0).html(data.msg).delay(3000).hide(0);
                }
            });
        });
    });
    <script>
        //JavaScript代码区域
//    layui.use(['layer','element'], function(){
//        var element = layui.element;
//        var layer = layui.layer;
//        $(function(){
//            $('.LoginUot').on('click',function(){
//                $.post('{:url("Index/LoginUot")}',function(data){
//                    layer.msg(data.msg,function(){
//                        window.location.href=data.url;
//                    });
//                });
//            });
//        })
//    });
</script>
</script>

</body>
<!-- END BODY -->
</html>